<!--<!DOCTYPE html>-->
<!--<script type="text/javascript">-->
<!--    window.onload = function () {-->
<!--        if (IsPC()) {-->
<!--            location.replace("/hush-Inn/indexPc.php");-->
<!--        } else {-->
<!--            location.replace("/hush-Inn/indexPhone.php");-->
<!--        }-->
<!--    }-->
<!--    function IsPC() {-->
<!--        var userAgentInfo = navigator.userAgent;-->
<!--        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");-->
<!--        var flag = true;-->
<!--        for (var v = 0; v < Agents.length; v++) {-->
<!--            if (userAgentInfo.indexOf(Agents[v]) > 0) {-->
<!--                flag = false;-->
<!--                break;-->
<!--            }-->
<!--        }-->
<!--        return flag;-->
<!--    }-->
<!--</script>-->
<?php
function isMobile()
{
    $userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
    $userAgent_commentsBlock = preg_match('|\(.*?\)|', $userAgent, $matches) > 0 ? $matches[0] : '';
    function CheckSubstrs($substrs, $text)
    {
        foreach ($substrs as $substr)
            if (false !== strpos($text, $substr)) {
                return true;
            }
        return false;
    }

    $mobile_os_list = array('Google Wireless Transcoder', 'Windows CE', 'WindowsCE', 'Symbian', 'Android', 'armv6l', 'armv5', 'Mobile', 'CentOS', 'mowser', 'AvantGo', 'Opera Mobi', 'J2ME/MIDP', 'Smartphone', 'Go.Web', 'Palm', 'iPAQ');
    $mobile_token_list = array('Profile/MIDP', 'Configuration/CLDC-', '160×160', '176×220', '240×240', '240×320', '320×240', 'UP.Browser', 'UP.Link', 'SymbianOS', 'PalmOS', 'PocketPC', 'SonyEricsson', 'Nokia', 'BlackBerry', 'Vodafone', 'BenQ', 'Novarra-Vision', 'Iris', 'NetFront', 'HTC_', 'Xda_', 'SAMSUNG-SGH', 'Wapaka', 'DoCoMo', 'iPhone', 'iPod');

    $found_mobile = CheckSubstrs($mobile_os_list, $userAgent_commentsBlock) ||
        CheckSubstrs($mobile_token_list, $userAgent);

    if ($found_mobile) {
        return true;
    } else {
        return false;
    }
}

if (isMobile())
    include($_SERVER['DOCUMENT_ROOT'] . "/hush-Inn/indexPhone.php");
else
    include($_SERVER['DOCUMENT_ROOT'] . "/hush-Inn/indexPc.php");
?>

<div style="width:300px;margin:0 auto; padding:20px 0;">
    <a target="_blank" href="//www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602001788" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img src="//tiannblog.oss-cn-shanghai.aliyuncs.com/images/beian.png" style="float:left;"/><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">浙公网安备 33010602001788号</p></a>
</div>
